package com.example.pc.videodemo;

import android.text.TextUtils;

/**
 * @author zzx
 */
public class MyContext {
    private static String Ip;

    public static String getIp() {
        return Ip;
    }

    public static void setIp(String ip) {
        if (TextUtils.isEmpty(ip)){
            return;
        }
//        if (!ip.endsWith("/")) {
//            ip += "/";
//        }
        if (!ip.startsWith("https://")&&!ip.startsWith("http://")) {
            ip = "http://" + ip+":8888/";
        }
        Ip = ip;
    }
}
